{if mcom("sale")}
{ifp 'sale.deduct|sale.enough|sale.enoughfree|sale.recharge'}
<div class='menu-header'>基本</div>
<ul>
   {ifp 'sale.enough'}<li {if $_W['routes']=='sale.enough'}class="active"{/if}><a href="{php echo merchUrl('sale/enough')}">满额立减</a></li>{/if}
   {ifp 'sale.enoughfree'}<li {if $_W['routes']=='sale.enoughfree'}class="active"{/if}><a href="{php echo merchUrl('sale/enoughfree')}">满额包邮</a></li>{/if}
</ul>
{/if}
{/if}
{if mcom("coupon")}
{ifp 'sale.coupon.view|sale.coupon.category|sale.coupon.log|sale.coupon.set'}
  <div class='menu-header'>优惠券</div>
  <ul>
   {ifp 'sale.coupon.view'}<li {if $_W['routes']=='sale.coupon'}class="active"{/if}><a href="{php echo merchUrl('sale/coupon')}">优惠券管理</a></li>{/if}
   {ifp 'sale.coupon.category'}<li {if $_W['routes']=='sale.coupon.category'}class="active"{/if}><a href="{php echo merchUrl('sale/coupon/category')}">分类</a></li>{/if}
   {ifp 'sale.coupon.log'}<li {if $_W['routes']=='sale.coupon.log'}class="active"{/if}><a href="{php echo merchUrl('sale/coupon/log')}">发放记录</a></li>{/if}
   {ifp 'sale.coupon.set'}<li {if $_W['routes']=='sale.coupon.set'}class="active"{/if}><a href="{php echo merchUrl('sale/coupon/set')}">设置</a></li>{/if}
</ul>
{/if}
{/if}